package org.hong.monkey

class MonkeyException(message: String, cause: Throwable)
  extends Exception(message, cause){
  def this(message: String) = this(message, null)
}

private[monkey] class MonkeyDriverExecutionException(cause: Throwable)
  extends MonkeyException("Execution error", cause)

private[monkey] case class MonkeyUserAppException(exitCode: Int)
  extends MonkeyException(s"User application exited with $exitCode")
